package cn.edu.ctbu.dp2.controller;
import cn.edu.ctbu.dp2.entity.Teacher;
import cn.edu.ctbu.dp2.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/teacher")
public class TeacherController {

    @Autowired
    private TeacherService teacherService;
    @GetMapping("/list")
    public String getList(){
       /* List<Teacher> teachers = teacherService.getAll();
        model.addAttribute("teachers", teachers);*/
        return "/teacher/list";
    }
}
